package com.industrial.operation.service.impl;

import java.util.List;

import com.industrial.common.core.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.operation.mapper.OperationSupportMapper;
import com.industrial.operation.domain.OperationSupport;
import com.industrial.operation.service.IOperationSupportService;

/**
 * 政府扶持Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-01-17
 */
@Service
public class OperationSupportServiceImpl implements IOperationSupportService 
{
    @Autowired
    private OperationSupportMapper operationSupportMapper;

    /**
     * 查询政府扶持
     * 
     * @param baseId 政府扶持主键
     * @return 政府扶持
     */
    @Override
    public OperationSupport selectOperationSupportByBaseId(String baseId)
    {
        return operationSupportMapper.selectOperationSupportByBaseId(baseId);
    }

    /**
     * 查询政府扶持列表
     * 
     * @param operationSupport 政府扶持
     * @return 政府扶持
     */
    @Override
    public List<OperationSupport> selectOperationSupportList(OperationSupport operationSupport)
    {
        return operationSupportMapper.selectOperationSupportList(operationSupport);
    }

    /**
     * 新增政府扶持
     * 
     * @param operationSupport 政府扶持
     * @return 结果
     */
    @Override
    public int insertOperationSupport(OperationSupport operationSupport)
    {
        operationSupport.setBaseId(IdUtils.simpleUUID());
        return operationSupportMapper.insertOperationSupport(operationSupport);
    }

    /**
     * 修改政府扶持
     * 
     * @param operationSupport 政府扶持
     * @return 结果
     */
    @Override
    public int updateOperationSupport(OperationSupport operationSupport)
    {
        return operationSupportMapper.updateOperationSupport(operationSupport);
    }

    /**
     * 批量删除政府扶持
     * 
     * @param baseIds 需要删除的政府扶持主键
     * @return 结果
     */
    @Override
    public int deleteOperationSupportByBaseIds(String[] baseIds)
    {
        return operationSupportMapper.deleteOperationSupportByBaseIds(baseIds);
    }

    /**
     * 删除政府扶持信息
     * 
     * @param baseId 政府扶持主键
     * @return 结果
     */
    @Override
    public int deleteOperationSupportByBaseId(String baseId)
    {
        return operationSupportMapper.deleteOperationSupportByBaseId(baseId);
    }
}
